<?php
namespace app\service;

use app\model\AgreementModel;

class AgreementService
{

    //获取协议详情
    public static function getDetails($code): array
    {
        $info= AgreementModel::where('code',$code)->first();
        return !empty($info->id)?$info->toArray():[];
    }

}